package com.zl.beans;

import java.util.List;

public class NewsLabel {
    private Integer id;
    private String label_name;//栏目名称
    private String label_content;//栏目描述
    //作为一方,查多方
    private List<NewsLabel> chileren;
    //作为多方
    private NewsLabel parent;

    public NewsLabel() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLabel_name() {
        return label_name;
    }

    public void setLabel_name(String label_name) {
        this.label_name = label_name;
    }

    public String getLabel_content() {
        return label_content;
    }

    public void setLabel_content(String label_content) {
        this.label_content = label_content;
    }

    public List<NewsLabel> getChileren() {
        return chileren;
    }

    public void setChileren(List<NewsLabel> chileren) {
        this.chileren = chileren;
    }

    public NewsLabel getParent() {
        return parent;
    }

    public void setParent(NewsLabel parent) {
        this.parent = parent;
    }

    @Override
    public String toString() {
        return "NewsLabel{" +
                "id=" + id +
                ", label_name='" + label_name + '\'' +
                ", label_content='" + label_content + '\'' +
                ", chileren=" + chileren +
                ", parent=" + parent +
                '}';
    }
}
